// 角色api

// 导入请求方法
import {
    get,
    post
} from '@/util/request'

//查询角色列表信息
export let getRoleList = async function () {
    let res = await get("/role/list");
    return res;
}

// 添加角色信息
export let addRole = async function (params) {
    let res = await post("/role/add", params);
    return res;
}

// 获取一个角色信息
export let getOneRole = async function (params) {
    let res = await get("/role/getOne", params);
    return res;
}

// 修改角色信息
export let updateRole = async function (params) {
    let res = await post("/role/update", params);
    return res;
}

// 删除角色信息
export let deleteRole = async function (params) {
    let res = await post("/role/delete", params);
    return res;
}
